﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VERKProjectHopur16.Models.LogOnModel>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Lang.GetText("Menu", "Log_On") %>
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: Lang.GetText("Menu", "Log_On")%></h2>
    <p>
        <%: Lang.GetText("Menu", "Log_On_Long_1") %> <%: Html.ActionLink(Lang.GetText("Menu", "Register"), "Register")%> <%: Lang.GetText("Menu", "Log_On_Long_2") %>.
    </p>

    <% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %>
        <div>
            <fieldset>
                <legend><%: Lang.GetText("Menu", "Account_Information") %></legend>
                
                <div class="editor-label">
                    <%: Html.Label(Lang.GetText("Menu", "User_name"))%>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.UserName) %>
                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <%: Html.Label(Lang.GetText("Menu", "Password"))%>
                </div>
                <div class="editor-field">
                    <%: Html.PasswordFor(m => m.Password) %>
                    <%: Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    <%: Html.CheckBoxFor(m => m.RememberMe) %>
                    <%: Html.Label(Lang.GetText("Menu", "Remember_me"))%>
                </div>
                
                <p>
                    <input type="submit" value="<%: Lang.GetText("Menu", "Log_On") %>" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
